package com.menghanjun.mhjresourcesharing.service.impl;

import com.menghanjun.mhjresourcesharing.entity.TBar;
import com.menghanjun.mhjresourcesharing.mapper.TBarMapper;
import com.menghanjun.mhjresourcesharing.service.ITBarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.menghanjun.mhjresourcesharing.vo.TBarVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author menghanjun
 * @since 2024-05-26
 */
@Service
public class TBarServiceImpl extends ServiceImpl<TBarMapper, TBar> implements ITBarService {


    @Autowired
    private TBarMapper tBarMapper;

    @Override
    public List<TBar> getAllNavList() {
        return tBarMapper.getBarListByType("N");
    }

    @Override
    public List<TBar> getAllTypeSelectList() {
        return tBarMapper.getBarListByType("L");
    }

    @Override
    public List<TBarVo> getBarList(TBar bar) {
        return tBarMapper.getBarList(bar);
    }

    @Override
    public void updateBar(TBar bar) {

    }
}
